package com.pds.web.statistics.controller;

import com.pds.common.core.domain.R;
import com.pds.web.statistics.service.OrganizationDistributionService;
import com.pds.web.statistics.vo.OrganizationDistributionVO;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;
import javax.annotation.Resource;
import java.util.List;

/**
 * 监测机构分布
 *
 * @author srf sunlightcs@gmail.com
 * @since 1.0.0 2024-02-19
 */
@RestController
@RequestMapping("/organizationDistribution")
@Api(tags="监测机构分布")
public class OrganizationDistributionController {
    @Resource
    private OrganizationDistributionService organizationDistributionService;

    /**
     * 监测机构分布统计
     *
     * @return 查询结果
     */
    @ApiOperation("监测机构分布统计")
    @GetMapping("/statisticsCount")
    public R<List<OrganizationDistributionVO>> statisticsOrganizationDistributionCount(){
        List<OrganizationDistributionVO> list = organizationDistributionService.statisticsOrganizationDistributionCount();
        return R.ok(list);
    }

}
